package p270jp.pxv.android.commonObjects.model;

import p216hn.DefaultConstructorMarker;

/* compiled from: CommentAccessType.kt */
/* renamed from: jp.pxv.android.commonObjects.model.CommentAccessType */
/* loaded from: classes2.dex */
public enum CommentAccessType {
    ALLOW(0),
    DENY(1);
    
    public static final Companion Companion = new Companion(null);
    private final int value;

    /* compiled from: CommentAccessType.kt */
    /* renamed from: jp.pxv.android.commonObjects.model.CommentAccessType$Companion */
    /* loaded from: classes2.dex */
    public static final class Companion {
        private Companion() {
        }

        public /* synthetic */ Companion(DefaultConstructorMarker eVar) {
            this();
        }

        public final CommentAccessType valueOf(int i) {
            CommentAccessType commentAccessType;
            CommentAccessType[] values = CommentAccessType.values();
            int length = values.length;
            int i2 = 0;
            while (true) {
                if (i2 >= length) {
                    commentAccessType = null;
                    break;
                }
                commentAccessType = values[i2];
                if (commentAccessType.getValue() == i) {
                    break;
                }
                i2++;
            }
            return commentAccessType == null ? CommentAccessType.DENY : commentAccessType;
        }
    }

    CommentAccessType(int i) {
        this.value = i;
    }

    public final int getValue() {
        return this.value;
    }
}
